package com.zxl.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1、Controller：处理请求，接受和校验数据
 * 2、Service接受Controller传过来的数据，进行业务处理
 * 3、Controller接受Service处理完的数据，封装成页面指定vo
 */

@EnableFeignClients(basePackages = "com.zxl.gulimall.product.feign")
@MapperScan("com.zxl.gulimall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
